package com.mtnz.njk.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * @Description: 用户咨询客服实体类
 * @Author: FBL
 * @CreateDate: 2019\8\22 0022 14:09
 * @Version: 1.0
 */
@Data
@Table(name = "inquiry")
public class InquiryEntity {
    @Id
    @Column(name = "inquiry_id")
    private Integer inquiryId;
    @Column(name = "nick_name")
    private String nickName;
    @Column(name = "user_id")
    private String userId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "create_time")
    private Date createTime;
    @Column(name = "product_name")
    private String productName;
    @Column(name = "product_id")
    private String productId;
    @Column(name = "inquiry_status")
    private Integer inquiryStatus;

    @Transient
    private String serviceName;

    @Transient
    private String addressDetail;
    @Transient
    private String phone;

}
